package com.zpf.pojo;
/**
 * 
Create Table

CREATE TABLE `tb_order` (
  `id` varchar(100) NOT NULL,
  `uid` int(11) DEFAULT NULL,
  `money` int(11) DEFAULT NULL,
  `status` varchar(10) DEFAULT NULL,
  `time` datetime DEFAULT NULL,
  `aid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_order_uid` (`uid`),
  KEY `fk_order_aid` (`aid`),
  CONSTRAINT `fk_order_aid` FOREIGN KEY (`aid`) REFERENCES `tb_address` (`id`),
  CONSTRAINT `fk_order_uid` FOREIGN KEY (`uid`) REFERENCES `tb_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

 * @author wgy
 *
 */

import java.util.Date;

public class Order {
	private String id;
	private int uid;
	private double money;
	private String status;
	private Date time;
	private int aid;
	public Order() {
		// TODO Auto-generated constructor stub
	}
	public Order(String id, int uid, double money, String status, Date time, int aid) {
		super();
		this.id = id;
		this.uid = uid;
		this.money = money;
		this.status = status;
		this.time = time;
		this.aid = aid;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public int getAid() {
		return aid;
	}
	public void setAid(int aid) {
		this.aid = aid;
	}
	@Override
	public String toString() {
		return "Order [id=" + id + ", uid=" + uid + ", money=" + money + ", status=" + status + ", time=" + time
				+ ", aid=" + aid + "]";
	}
	
}
